package com.example.demo.common;

/**
 * Created with IntelliJ IEDA.
 * Description:
 * User:86186
 * Date:2023-08-29
 * Time:14:45
 */

/**
 * 全局变量
 */
public class AppVariable {
    /**
     * 用户的 session key
     */
    public static final String USER_SESSION_KEY = "USER_SESSION_KEY";

    /**
     * 用户多次登录失败冻结时间
     */
    public static final Integer WAIT_TIME = 60;

    /**
     *  登录验证码的 key
     */
    public static final String LOGIN_CHECK_CODE = "LOGIN_CHECK_CODE";

    /**
     * 棋盘的最大行数和列数
     */
    public static final int MAX_ROW = 15;
    public static final int MAX_COL = 15;


    /**
     *  文件保存路径
     */
    // 本地
//    public static final String UPLOADS_PATH = "D:/image/";
//    public static final String UPLOADS_PATH = "C:\\javacode\\java\\mycnblog-ssm\\src\\main\\resources\\static\\img\\photo\\";
    public static final String UPLOADS_PATH = "D:/image/";

    // 服务器
//    public static final String UPLOADS_PATH = "/root/blog_system_li/image/";
}
